package com.ssn.mediator.chatroom;

public class Client {

    // 思考了一下 这种写法应该是代理模式。
    public static void main(String[] args) {
        VRoom room = new TRoom();
        Member cm = new CommonMember("小明");
        Member dm = new DiamondMember("小红");

        cm.setRoom(room);
        dm.setRoom(room);

        cm.sendText("哈哈哈哈TMD，发消息");
        cm.sendImage("试试发送图片");

        dm.sendText("哈哈哈，TTTTTTTTTTTMD，嘻嘻嘻");
        dm.sendImage("钻石会员能发图片");

    }
}
